package com.lyp.springboot.dao;

import com.lyp.springboot.model.TestUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserDao {

    @Select({"select password from  test_user where name=#{name} "})
    String checkLoginUser(String name);

    // @Insert({"insert into test_user(id,name,real_name,password, status, creator, create_time) values(#{id},#{name}, #{realName}, #{password}, #{status}, #{creator}, #{createTime})"})
    void saveUser(TestUser testUser);
}